@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="classInfoForm">

            <input type="hidden" id="id" value="${schoolClass.id}">

            <div class="row">
                <div class="col-sm-12">
                            <#select id="senoirSchoolId" name="所属学校" underline="true"
                                select2Flag="true"
                                readonly="${isNotEmpty(schoolClass.id)?'readonly':''}"
                                urlForSelect2="${ctxPath}/seniorschool/listSchoolForSelect2" async="true">
                                @if(isNotEmpty(schools)){
		                            @for(es in schools){
		                                <option value="${es.id}" selected="selected">${es.text}</option>
		                            @}
		                        @}
                            </#select>
                            <#input id="seniorClassCode" name="班级代号" value="${schoolClass.seniorClassCode}" underline="true" readonly="${isNotEmpty(schoolClass.id)?'readonly':''}"/>
                            <#input id="senoirClassName" name="班级名称" value="${schoolClass.senoirClassName}" />
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                     @if(isNotEmpty(schoolClass.id)){
                        <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="SeniorSchoolClassInfoDlg.editSubmit()"/>
                     @}
					 @else{ 
					 <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="SeniorSchoolClassInfoDlg.addSubmit()"/>
					 @}
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="SeniorSchoolClassInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/examinee/class/classEdit.js"></script>
@}
